package jtalk;

import jtalk.logging.Logger;
import jtalk.model.XMPPManager;

public class Shutdown extends Thread {
	
	private XMPPManager xmppManager;

	protected Shutdown(XMPPManager xmppManager) {
		this.xmppManager = xmppManager;
	}
	
	public void run() {
		Logger.getLogger(this).info("Shuting down ...");
		this.xmppManager.disconnect();
		Logger.getLogger(this).info("Exit");
	}
	
}